
interface IPerson {
    name: string,
    age: number,
}

type ResType = Pick<IPerson, "name">


type MyPick<T, Keys extends keyof T> = {
    [P in Keys]: T[P]
}

type ResType2 = MyPick<IPerson, "age">

export { }